/**
 * @project name:mail
 */
package com.situ.mail.shop.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author : yun&bo
 * @CreateDate : ==>2020/12/23 11:05
 * @ClassName : ==>
 * @Description : ==> 进商城首页
 * @Version
 */
@RestController
public class ShopController {

    private static final String SHOP_SHOP = "shop/shop";
    private static final String SHOP_CART = "shop/cart";
    private static final String SHOP_WISHLIST = "shop/wishlist";
    private static final String SHOP_ACCOUNT = "shop/account";
    private static final String SHOP_CHECKOUT = "shop/checkout";




    @RequestMapping("/shop")
    public ModelAndView goShop(ModelAndView modelAndView) {
        modelAndView.setViewName(SHOP_SHOP);
        return modelAndView;
    }


    @RequestMapping("/cart")
    public ModelAndView goCart(ModelAndView modelAndView) {
        modelAndView.setViewName(SHOP_CART);
        return modelAndView;
    }

    @RequestMapping("/wishlist")
    public ModelAndView goWishlist(ModelAndView modelAndView) {
        modelAndView.setViewName(SHOP_WISHLIST);
        return modelAndView;
    }

    @RequestMapping("/account")
    public ModelAndView goACCOUNT(ModelAndView modelAndView) {
        modelAndView.setViewName(SHOP_ACCOUNT);
        return modelAndView;
    }

    @RequestMapping("/checkout")
    public ModelAndView goCheckout(ModelAndView modelAndView) {
        modelAndView.setViewName(SHOP_CHECKOUT);
        return modelAndView;
    }


}
